package com.vhall.component.entity.chat.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @author shimingming
 * @since 2023/3/20 14:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentListReqVO implements Serializable {
    /**
     * 页码
     */
    @Min(value = 1, message = "page参数不允许小于1")
    private Integer page = 1;

    @ParamName("page_size")
    @Min(value = 1, message = "page_size参数不允许小于1")
    private Integer pageSize = 10;

    /**
     * 房间id
     */
    @JsonProperty("il_id")
    @ParamName("il_id")
    private Integer ilId;

    /**
     * 创建者昵称
     */
    @JsonProperty("nickname")
    @ParamName("nickname")
    private String creatorNickname;

    /**
     * 评论内容
     */
    @JsonProperty("text_content")
    @ParamName("text_content")
    private String textContent;
}
